home *** CD-ROM | disk | FTP | other *** search
/ Wayzata's Best of Shareware for Macintosh / CD Line - Limited Edition Wayzata's Best of Shareware for Macintosh for MacWorld Exposition Milano 1994 (050594)(1994).iso / pc / utilitie / system_7 / hyperkey / hyperkey.1 / cards.xml < prev    next >
Encoding:
Text File  |  1992-05-09  |  44.1 KB  |  993 lines

  1. card_2870.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>2870</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>2652</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_2184.css" />
  12.     <part>
  13.         <id>1</id>
  14.         <type>field</type>
  15.         <visible> <true /> </visible>
  16.         <dontWrap> <true /> </dontWrap>
  17.         <dontSearch> <false /> </dontSearch>
  18.         <sharedText> <false /> </sharedText>
  19.         <fixedLineHeight> <true /> </fixedLineHeight>
  20.         <autoTab> <false /> </autoTab>
  21.         <lockText> <true /> </lockText>
  22.         <rect>
  23.             <left>8</left>
  24.             <top>88</top>
  25.             <right>176</right>
  26.             <bottom>216</bottom>
  27.         </rect>
  28.         <style>scrolling</style>
  29.         <autoSelect> <false /> </autoSelect>
  30.         <showLines> <false /> </showLines>
  31.         <wideMargins> <false /> </wideMargins>
  32.         <multipleLines> <false /> </multipleLines>
  33.         <reservedFamily> 0 </reservedFamily>
  34.         <titleWidth>0</titleWidth>
  35.         <icon>0</icon>
  36.         <textAlign>left</textAlign>
  37.         <font>Chicago</font>
  38.         <textSize>12</textSize>
  39.         <textStyle>plain</textStyle>
  40.         <textHeight>16</textHeight>
  41.         <name></name>
  42.         <script>on mousedown
  43. set cursor to watch
  44. type tab
  45. global selectedkey,openfile
  46. put the rect of me into therect
  47. put the mouseloc into DownLoc
  48. put ((item 2 of DownLoc - item 2 of therect+ the scroll of me)¬¨
  49. div the textheight of me)+1 into theline
  50. if line theline of me is not empty then
  51. put "1,"& theline &","& line theline of me into SelectedKey
  52. Getscript
  53. if openfile ‚↠"" then
  54. set the name of button 1 to "¬ª copy ¬ª"
  55. set the name of button 2 to "¬ª copy all ¬ª"
  56. show btn 1
  57. show btn 2
  58. else
  59. hide btn 1
  60. hide btn 2
  61. end if
  62. show btn 3
  63. show btn 4
  64. select line theline of me
  65. end if
  66. end mousedown
  67.  
  68.  
  69. on mouseup
  70. end mouseup</script>
  71.     </part>
  72.     <part>
  73.         <id>5</id>
  74.         <type>button</type>
  75.         <visible> <true /> </visible>
  76.         <reserved5> 0 </reserved5>
  77.         <reserved4> 0 </reserved4>
  78.         <reserved3> 0 </reserved3>
  79.         <reserved2> 0 </reserved2>
  80.         <reserved1> 0 </reserved1>
  81.         <enabled> <true /> </enabled>
  82.         <rect>
  83.             <left>192</left>
  84.             <top>99</top>
  85.             <right>320</right>
  86.             <bottom>121</bottom>
  87.         </rect>
  88.         <style>roundrect</style>
  89.         <showName> <true /> </showName>
  90.         <highlight> <false /> </highlight>
  91.         <autoHighlight> <true /> </autoHighlight>
  92.         <sharedHighlight> <true /> </sharedHighlight>
  93.         <family>0</family>
  94.         <titleWidth>0</titleWidth>
  95.         <icon>0</icon>
  96.         <textAlign>center</textAlign>
  97.         <font>Chicago</font>
  98.         <textSize>12</textSize>
  99.         <textStyle>plain</textStyle>
  100.         <name>¬´ move ¬´</name>
  101.         <script>on mouseUp
  102. global openfile,selectedkey
  103. if the short name of me is "Can‚Äôt copy" then exit mouseup
  104. docopy
  105. put "" into cd fld 1
  106. put "" into cd fld 2
  107. GetInstalledKeys
  108. if openfile ‚↠"" then
  109. GetKeysFromFile
  110. GetFileInfo
  111. end if
  112. put "1,1," into selectedkey
  113. getscript
  114. hide btn 1
  115. hide btn 2
  116. hide btn 3
  117. hide btn 4
  118. end mouseUp
  119. </script>
  120.     </part>
  121.     <part>
  122.         <id>6</id>
  123.         <type>button</type>
  124.         <visible> <true /> </visible>
  125.         <reserved5> 0 </reserved5>
  126.         <reserved4> 0 </reserved4>
  127.         <reserved3> 0 </reserved3>
  128.         <reserved2> 0 </reserved2>
  129.         <reserved1> 0 </reserved1>
  130.         <enabled> <true /> </enabled>
  131.         <rect>
  132.             <left>192</left>
  133.             <top>124</top>
  134.             <right>320</right>
  135.             <bottom>146</bottom>
  136.         </rect>
  137.         <style>roundrect</style>
  138.         <showName> <true /> </showName>
  139.         <highlight> <false /> </highlight>
  140.         <autoHighlight> <true /> </autoHighlight>
  141.         <sharedHighlight> <true /> </sharedHighlight>
  142.         <family>0</family>
  143.         <titleWidth>0</titleWidth>
  144.         <icon>0</icon>
  145.         <textAlign>center</textAlign>
  146.         <font>Chicago</font>
  147.         <textSize>12</textSize>
  148.         <textStyle>plain</textStyle>
  149.         <name>¬´ move all ¬´</name>
  150.         <script>on mouseUp
  151. global selectedkey,openfile
  152. if the name of me is "Can‚Äôt copy" then exit mouseup
  153. put item 1 of selectedkey into TheField
  154. put cd fld TheField into CopyList
  155. repeat with x =1 to the number of lines in copylist
  156. put TheField&","&x&","&line x of Copylist into SelectedKey
  157. GetScript
  158. docopy
  159. end repeat
  160. put "" into cd fld 1
  161. put "" into cd fld 2
  162. GetInstalledKeys
  163. if openfile ‚↠"" then
  164. GetKeysFromFile
  165. GetFileInfo
  166. end if
  167. put "1,1," into selectedkey
  168. getscript
  169. hide btn 1
  170. hide btn 2
  171. hide btn 3
  172. hide btn 4
  173. end mouseUp
  174. </script>
  175.     </part>
  176.     <part>
  177.         <id>7</id>
  178.         <type>button</type>
  179.         <visible> <false /> </visible>
  180.         <reserved5> 0 </reserved5>
  181.         <reserved4> 0 </reserved4>
  182.         <reserved3> 0 </reserved3>
  183.         <reserved2> 0 </reserved2>
  184.         <reserved1> 0 </reserved1>
  185.         <enabled> <true /> </enabled>
  186.         <rect>
  187.             <left>192</left>
  188.             <top>149</top>
  189.             <right>320</right>
  190.             <bottom>171</bottom>
  191.         </rect>
  192.         <style>roundrect</style>
  193.         <showName> <true /> </showName>
  194.         <highlight> <false /> </highlight>
  195.         <autoHighlight> <true /> </autoHighlight>
  196.         <sharedHighlight> <true /> </sharedHighlight>
  197.         <family>0</family>
  198.         <titleWidth>0</titleWidth>
  199.         <icon>0</icon>
  200.         <textAlign>center</textAlign>
  201.         <font>Chicago</font>
  202.         <textSize>12</textSize>
  203.         <textStyle>plain</textStyle>
  204.         <name>Remove</name>
  205.         <script>on mouseUp
  206. global Currentscript,SelectedKey,openfile
  207. if item 1 of selectedKey = "2" then
  208. answer "I can only remove keys from a stack." with "OK"
  209. exit mouseup
  210. end if
  211. answer "Removing a Key sends it into the void forever ..." with¬¨
  212. "Go Ahead" or "Cancel"
  213. if it is "Cancel" then exit mouseup
  214. put last word of SelectedKey into KeyName
  215. put first word of item 3 of SelectedKey into Keytype
  216. put length(Keyname)+Length(Keytype) into TheLength
  217. put offset("on Do"&Keytype&keyname&return,currentscript) into start
  218. put offset("end Do"&Keytype&keyname&return,currentscript) into finish
  219. put "" into char start to finish + 5 + thelength of¬¨
  220. currentscript
  221. UpdateStackScript
  222. put "" into cd fld 1
  223. put "" into cd fld 2
  224. GetInstalledKeys
  225. if openfile ‚↠"" then GetKeysFromFile
  226. put "1,1," into SelectedKey
  227. hide btn 1
  228. hide btn 2
  229. hide btn 3
  230. hide btn 4
  231. GetScript
  232. end mouseup
  233. </script>
  234.     </part>
  235.     <part>
  236.         <id>8</id>
  237.         <type>button</type>
  238.         <visible> <false /> </visible>
  239.         <reserved5> 0 </reserved5>
  240.         <reserved4> 0 </reserved4>
  241.         <reserved3> 0 </reserved3>
  242.         <reserved2> 0 </reserved2>
  243.         <reserved1> 0 </reserved1>
  244.         <enabled> <true /> </enabled>
  245.         <rect>
  246.             <left>192</left>
  247.             <top>174</top>
  248.             <right>320</right>
  249.             <bottom>196</bottom>
  250.         </rect>
  251.         <style>roundrect</style>
  252.         <showName> <true /> </showName>
  253.         <highlight> <false /> </highlight>
  254.         <autoHighlight> <true /> </autoHighlight>
  255.         <sharedHighlight> <true /> </sharedHighlight>
  256.         <family>0</family>
  257.         <titleWidth>0</titleWidth>
  258.         <icon>0</icon>
  259.         <textAlign>center</textAlign>
  260.         <font>Chicago</font>
  261.         <textSize>12</textSize>
  262.         <textStyle>plain</textStyle>
  263.         <name>Reassign script ...</name>
  264.         <script>on mouseUp
  265. global selectedkey,keynames,openfile,padding,FkeyNames
  266. if item 1 of selectedkey is "2" and openfile ="" then
  267. answer "I Can‚Äôt reassign an Unused Key"
  268. exit mouseup
  269. end if
  270. set cursor to busy
  271. put "" into cd fld "Choose"
  272. set the scroll of cd fld "Choose" to 0
  273. put "Reassign "&& last item of selectedkey &&"script to :" into¬¨
  274. cd fld action
  275. dodialog show
  276. put cd field (item 1 of selectedkey) into temp
  277. repeat with x = 1 to the number of items in Keynames
  278. if item x of keynames = "*" then next repeat
  279. put "Control ‚Äî "&item x of keynames& padding into thename
  280. if thename is not in temp then
  281. put thename after cd fld "Choose"
  282. end if
  283. set cursor to busy
  284. end repeat
  285. repeat with x = 1 to the number of items in FkeyNames
  286. put "Fkey ‚Äî "&item x of FkeyNames &padding into thename
  287. if thename is not in Temp then
  288. put thename after cd fld "Choose"
  289. end if
  290. set cursor to busy
  291. end repeat
  292. end mouseUp
  293. </script>
  294.     </part>
  295.     <part>
  296.         <id>9</id>
  297.         <type>button</type>
  298.         <visible> <true /> </visible>
  299.         <reserved5> 0 </reserved5>
  300.         <reserved4> 0 </reserved4>
  301.         <reserved3> 0 </reserved3>
  302.         <reserved2> 0 </reserved2>
  303.         <reserved1> 0 </reserved1>
  304.         <enabled> <true /> </enabled>
  305.         <rect>
  306.             <left>46</left>
  307.             <top>13</top>
  308.             <right>83</right>
  309.             <bottom>43</bottom>
  310.         </rect>
  311.         <style>transparent</style>
  312.         <showName> <false /> </showName>
  313.         <highlight> <false /> </highlight>
  314.         <autoHighlight> <true /> </autoHighlight>
  315.         <sharedHighlight> <true /> </sharedHighlight>
  316.         <family>0</family>
  317.         <titleWidth>0</titleWidth>
  318.         <icon>29114</icon>
  319.         <textAlign>center</textAlign>
  320.         <font>Chicago</font>
  321.         <textSize>12</textSize>
  322.         <textStyle>plain</textStyle>
  323.         <name>Return to stack</name>
  324.         <script>on mouseUp
  325. type tab
  326. close window short name of this stack
  327. pop card
  328. end mouseUp
  329. </script>
  330.     </part>
  331.     <part>
  332.         <id>10</id>
  333.         <type>button</type>
  334.         <visible> <true /> </visible>
  335.         <reserved5> 0 </reserved5>
  336.         <reserved4> 0 </reserved4>
  337.         <reserved3> 0 </reserved3>
  338.         <reserved2> 0 </reserved2>
  339.         <reserved1> 0 </reserved1>
  340.         <enabled> <true /> </enabled>
  341.         <rect>
  342.             <left>334</left>
  343.             <top>220</top>
  344.             <right>417</right>
  345.             <bottom>243</bottom>
  346.         </rect>
  347.         <style>roundrect</style>
  348.         <showName> <true /> </showName>
  349.         <highlight> <false /> </highlight>
  350.         <autoHighlight> <true /> </autoHighlight>
  351.         <sharedHighlight> <true /> </sharedHighlight>
  352.         <family>0</family>
  353.         <titleWidth>0</titleWidth>
  354.         <icon>0</icon>
  355.         <textAlign>center</textAlign>
  356.         <font>Chicago</font>
  357.         <textSize>12</textSize>
  358.         <textStyle>plain</textStyle>
  359.         <name>Open...</name>
  360.         <script>on mouseUp
  361. global openfile,Keynames,selectedkey
  362. if the short name of me is "Open..." then
  363. answer file "Choose a storage file ..." of type "TEXT"
  364. put it into thefile
  365. if thefile is not empty then
  366. set the name of me to "Close"
  367. put thefile into openfile
  368. GetFileInfo
  369. set the name of button 1 to "¬´ copy ¬´"
  370. set the name of button 2 to "¬´ copy all ¬´"
  371. hide btn 3
  372. show btn 4
  373. put "" into cd fld 2
  374. set the scroll of cd fld 2 to 0
  375. GetKeysFromFile
  376. put "2,1,"& line 1 of cd fld 2 into selectedkey
  377. GetScript
  378. end if
  379. else
  380. set the name of me to "Open..."
  381. put "" into openfile
  382. put "Unused Keys" into cd fld "filename"
  383. put "" into cd fld 1
  384. put "" into cd fld 2
  385. set the name of button 1 to "¬´ move ¬´"
  386. set the name of button 2 to "¬´ move all ¬´"
  387. hide btn 3
  388. hide btn 4
  389. GetInstalledKeys
  390. put "2,1,"& line 1 of cd fld 2 into selectedkey
  391. GetScript
  392. end if
  393. end mouseUp
  394. </script>
  395.     </part>
  396.     <part>
  397.         <id>12</id>
  398.         <type>field</type>
  399.         <visible> <true /> </visible>
  400.         <dontWrap> <true /> </dontWrap>
  401.         <dontSearch> <false /> </dontSearch>
  402.         <sharedText> <false /> </sharedText>
  403.         <fixedLineHeight> <true /> </fixedLineHeight>
  404.         <autoTab> <false /> </autoTab>
  405.         <lockText> <true /> </lockText>
  406.         <rect>
  407.             <left>335</left>
  408.             <top>88</top>
  409.             <right>503</right>
  410.             <bottom>216</bottom>
  411.         </rect>
  412.         <style>scrolling</style>
  413.         <autoSelect> <false /> </autoSelect>
  414.         <showLines> <false /> </showLines>
  415.         <wideMargins> <false /> </wideMargins>
  416.         <multipleLines> <false /> </multipleLines>
  417.         <reservedFamily> 0 </reservedFamily>
  418.         <titleWidth>0</titleWidth>
  419.         <icon>0</icon>
  420.         <textAlign>left</textAlign>
  421.         <font>Chicago</font>
  422.         <textSize>12</textSize>
  423.         <textStyle>plain</textStyle>
  424.         <textHeight>16</textHeight>
  425.         <name></name>
  426.         <script>on mousedown
  427. global openfile
  428. set cursor to watch
  429. type tab
  430. global selectedkey
  431. put the rect of me into therect
  432. put the mouseloc into DownLoc
  433. put ((item 2 of DownLoc - item 2 of therect+ the scroll of me)¬¨
  434. div the textheight of me)+1 into theline
  435. if line theline of me is not empty then
  436. put "2,"& theline &","& line theline of me into SelectedKey
  437. Getscript
  438. if openfile = "" then
  439. set the name of button 1 to "¬´ move ¬´"
  440. set the name of button 2 to "¬´ move all ¬´"
  441. hide btn 4
  442. else
  443. set the name of button 1 to "¬´ copy ¬´"
  444. set the name of button 2 to "¬´ copy all ¬´"
  445. show btn 4
  446. end if
  447. show btn 1
  448. show btn 2
  449. hide btn 3
  450. select line theline of me
  451. end if
  452. end mousedown
  453.  
  454.  
  455. on mouseup
  456. end mouseup</script>
  457.     </part>
  458.     <part>
  459.         <id>13</id>
  460.         <type>field</type>
  461.         <visible> <true /> </visible>
  462.         <dontWrap> <false /> </dontWrap>
  463.         <dontSearch> <false /> </dontSearch>
  464.         <sharedText> <false /> </sharedText>
  465.         <fixedLineHeight> <true /> </fixedLineHeight>
  466.         <autoTab> <false /> </autoTab>
  467.         <lockText> <true /> </lockText>
  468.         <rect>
  469.             <left>8</left>
  470.             <top>54</top>
  471.             <right>176</right>
  472.             <bottom>87</bottom>
  473.         </rect>
  474.         <style>transparent</style>
  475.         <autoSelect> <false /> </autoSelect>
  476.         <showLines> <false /> </showLines>
  477.         <wideMargins> <false /> </wideMargins>
  478.         <multipleLines> <false /> </multipleLines>
  479.         <reservedFamily> 0 </reservedFamily>
  480.         <titleWidth>0</titleWidth>
  481.         <icon>0</icon>
  482.         <textAlign>center</textAlign>
  483.         <font>Chicago</font>
  484.         <textSize>12</textSize>
  485.         <textStyle>plain</textStyle>
  486.         <textHeight>16</textHeight>
  487.         <name>StackName</name>
  488.         <script></script>
  489.     </part>
  490.     <part>
  491.         <id>15</id>
  492.         <type>field</type>
  493.         <visible> <true /> </visible>
  494.         <dontWrap> <false /> </dontWrap>
  495.         <dontSearch> <false /> </dontSearch>
  496.         <sharedText> <false /> </sharedText>
  497.         <fixedLineHeight> <true /> </fixedLineHeight>
  498.         <autoTab> <false /> </autoTab>
  499.         <lockText> <true /> </lockText>
  500.         <rect>
  501.             <left>335</left>
  502.             <top>54</top>
  503.             <right>503</right>
  504.             <bottom>87</bottom>
  505.         </rect>
  506.         <style>transparent</style>
  507.         <autoSelect> <false /> </autoSelect>
  508.         <showLines> <false /> </showLines>
  509.         <wideMargins> <false /> </wideMargins>
  510.         <multipleLines> <false /> </multipleLines>
  511.         <reservedFamily> 0 </reservedFamily>
  512.         <titleWidth>0</titleWidth>
  513.         <icon>0</icon>
  514.         <textAlign>center</textAlign>
  515.         <font>Chicago</font>
  516.         <textSize>12</textSize>
  517.         <textStyle>plain</textStyle>
  518.         <textHeight>16</textHeight>
  519.         <name>filename</name>
  520.         <script></script>
  521.     </part>
  522.     <part>
  523.         <id>18</id>
  524.         <type>button</type>
  525.         <visible> <true /> </visible>
  526.         <reserved5> 0 </reserved5>
  527.         <reserved4> 0 </reserved4>
  528.         <reserved3> 0 </reserved3>
  529.         <reserved2> 0 </reserved2>
  530.         <reserved1> 0 </reserved1>
  531.         <enabled> <true /> </enabled>
  532.         <rect>
  533.             <left>467</left>
  534.             <top>11</top>
  535.             <right>499</right>
  536.             <bottom>46</bottom>
  537.         </rect>
  538.         <style>transparent</style>
  539.         <showName> <false /> </showName>
  540.         <highlight> <false /> </highlight>
  541.         <autoHighlight> <true /> </autoHighlight>
  542.         <sharedHighlight> <true /> </sharedHighlight>
  543.         <family>0</family>
  544.         <titleWidth>0</titleWidth>
  545.         <icon>2507</icon>
  546.         <textAlign>center</textAlign>
  547.         <font>Chicago</font>
  548.         <textSize>12</textSize>
  549.         <textStyle>plain</textStyle>
  550.         <name>Help</name>
  551.         <script>on mouseUp
  552. set the visible of card field "help" to not the visible of cd fld "help"
  553. end mouseUp
  554. </script>
  555.     </part>
  556.     <part>
  557.         <id>19</id>
  558.         <type>button</type>
  559.         <visible> <true /> </visible>
  560.         <reserved5> 0 </reserved5>
  561.         <reserved4> 0 </reserved4>
  562.         <reserved3> 0 </reserved3>
  563.         <reserved2> 0 </reserved2>
  564.         <reserved1> 0 </reserved1>
  565.         <enabled> <true /> </enabled>
  566.         <rect>
  567.             <left>12</left>
  568.             <top>13</top>
  569.             <right>46</right>
  570.             <bottom>41</bottom>
  571.         </rect>
  572.         <style>transparent</style>
  573.         <showName> <false /> </showName>
  574.         <highlight> <false /> </highlight>
  575.         <autoHighlight> <true /> </autoHighlight>
  576.         <sharedHighlight> <true /> </sharedHighlight>
  577.         <family>0</family>
  578.         <titleWidth>0</titleWidth>
  579.         <icon>20098</icon>
  580.         <textAlign>center</textAlign>
  581.         <font>Chicago</font>
  582.         <textSize>12</textSize>
  583.         <textStyle>plain</textStyle>
  584.         <name>Home</name>
  585.         <script>on mouseUp
  586. type tab
  587. close window short name of this stack
  588. go home
  589. end mouseUp
  590. </script>
  591.     </part>
  592.     <part>
  593.         <id>23</id>
  594.         <type>button</type>
  595.         <visible> <true /> </visible>
  596.         <reserved5> 0 </reserved5>
  597.         <reserved4> 0 </reserved4>
  598.         <reserved3> 0 </reserved3>
  599.         <reserved2> 0 </reserved2>
  600.         <reserved1> 0 </reserved1>
  601.         <enabled> <true /> </enabled>
  602.         <rect>
  603.             <left>435</left>
  604.             <top>11</top>
  605.             <right>468</right>
  606.             <bottom>48</bottom>
  607.         </rect>
  608.         <style>transparent</style>
  609.         <showName> <false /> </showName>
  610.         <highlight> <false /> </highlight>
  611.         <autoHighlight> <false /> </autoHighlight>
  612.         <sharedHighlight> <true /> </sharedHighlight>
  613.         <family>0</family>
  614.         <titleWidth>0</titleWidth>
  615.         <icon>2478</icon>
  616.         <textAlign>center</textAlign>
  617.         <font>Chicago</font>
  618.         <textSize>12</textSize>
  619.         <textStyle>plain</textStyle>
  620.         <name>About</name>
  621.         <script>on mouseUp
  622. set hilite of me to true
  623. set the textsize of cd fld About to 1
  624. show cd fld About
  625. repeat with x =1 to 10
  626. set the textsize of cd fld About to x
  627. end repeat
  628. repeat until the mouse is down
  629. end repeat
  630. repeat with x = 13 to 110
  631. if x mod 12 ‚↠1 then next repeat
  632. set the textheight of cd fld About to x
  633. end repeat
  634. wait 100
  635. hide cd fld about
  636. set the textheight of cd fld about to 13
  637. set hilite of me to false
  638. end mouseUp
  639. </script>
  640.     </part>
  641.     <part>
  642.         <id>24</id>
  643.         <type>button</type>
  644.         <visible> <true /> </visible>
  645.         <reserved5> 0 </reserved5>
  646.         <reserved4> 0 </reserved4>
  647.         <reserved3> 0 </reserved3>
  648.         <reserved2> 0 </reserved2>
  649.         <reserved1> 0 </reserved1>
  650.         <enabled> <true /> </enabled>
  651.         <rect>
  652.             <left>8</left>
  653.             <top>220</top>
  654.             <right>91</right>
  655.             <bottom>243</bottom>
  656.         </rect>
  657.         <style>roundrect</style>
  658.         <showName> <true /> </showName>
  659.         <highlight> <false /> </highlight>
  660.         <autoHighlight> <true /> </autoHighlight>
  661.         <sharedHighlight> <true /> </sharedHighlight>
  662.         <family>0</family>
  663.         <titleWidth>0</titleWidth>
  664.         <icon>0</icon>
  665.         <textAlign>center</textAlign>
  666.         <font>Chicago</font>
  667.         <textSize>12</textSize>
  668.         <textStyle>plain</textStyle>
  669.         <name>Open...</name>
  670.         <script>on mouseUp
  671. global StackOpen,selectedkey,OpenFile
  672. answer file "Choose a hypercard stack ..." of type "STAK"
  673. if it = "" then exit mouseup
  674. put it into StackOpen
  675. GetStackInfo
  676. put "" into cd fld 1
  677. if openfile = "" then put "" into cd fld 2
  678. GetInstalledKeys
  679. put "1,1,"& line 1 of cd fld 1 into selectedkey
  680. GetScript
  681. end mouseUp
  682. </script>
  683.     </part>
  684.     <part>
  685.         <id>38</id>
  686.         <type>button</type>
  687.         <visible> <true /> </visible>
  688.         <reserved5> 0 </reserved5>
  689.         <reserved4> 0 </reserved4>
  690.         <reserved3> 0 </reserved3>
  691.         <reserved2> 0 </reserved2>
  692.         <reserved1> 0 </reserved1>
  693.         <enabled> <true /> </enabled>
  694.         <rect>
  695.             <left>202</left>
  696.             <top>49</top>
  697.             <right>315</right>
  698.             <bottom>71</bottom>
  699.         </rect>
  700.         <style>checkbox</style>
  701.         <showName> <true /> </showName>
  702.         <highlight> <true /> </highlight>
  703.         <autoHighlight> <false /> </autoHighlight>
  704.         <sharedHighlight> <true /> </sharedHighlight>
  705.         <family>0</family>
  706.         <titleWidth>0</titleWidth>
  707.         <icon>0</icon>
  708.         <textAlign>center</textAlign>
  709.         <font>Chicago</font>
  710.         <textSize>12</textSize>
  711.         <textStyle>plain</textStyle>
  712.         <name>Control Driver</name>
  713.         <script>on mouseUp
  714. global openfile
  715. if the hilite of me is true then
  716. removeDriver ControlKey
  717. else InstallDriver ControlKey
  718. set the hilite of me to installed(ControlKey)
  719. if installed(ControlKey) then
  720. enable menuItem 4 of menu "Hyperkeys"
  721. disable menuItem 3 of menu "Hyperkeys"
  722. else
  723. enable menuItem 3 of menu "Hyperkeys"
  724. disable menuItem 4 of menu "Hyperkeys"
  725. end if
  726. if word 2 of cd fld stackname = quote &"home"&quote then
  727. getstackinfo
  728. put "" into cd fld 1
  729. if openfile = "" then put "" into cd fld 2
  730. getinstalledkeys
  731. end if
  732. end mouseUp
  733. </script>
  734.     </part>
  735.     <part>
  736.         <id>25</id>
  737.         <type>button</type>
  738.         <visible> <true /> </visible>
  739.         <reserved5> 0 </reserved5>
  740.         <reserved4> 0 </reserved4>
  741.         <reserved3> 0 </reserved3>
  742.         <reserved2> 0 </reserved2>
  743.         <reserved1> 0 </reserved1>
  744.         <enabled> <true /> </enabled>
  745.         <rect>
  746.             <left>94</left>
  747.             <top>220</top>
  748.             <right>177</right>
  749.             <bottom>243</bottom>
  750.         </rect>
  751.         <style>roundrect</style>
  752.         <showName> <true /> </showName>
  753.         <highlight> <false /> </highlight>
  754.         <autoHighlight> <false /> </autoHighlight>
  755.         <sharedHighlight> <true /> </sharedHighlight>
  756.         <family>0</family>
  757.         <titleWidth>0</titleWidth>
  758.         <icon>0</icon>
  759.         <textAlign>center</textAlign>
  760.         <font>Chicago</font>
  761.         <textSize>12</textSize>
  762.         <textStyle>plain</textStyle>
  763.         <name>Compact</name>
  764.         <script>on mouseUp
  765. global StackOPen
  766. push card
  767. put "Compacting"&& line 1 of cd fld "StackName"
  768. set cursor to watch
  769. set lockmessages to true
  770. set lockscreen to true
  771. go stack Stackopen
  772. DoMenu "Compact Stack"
  773. pop card
  774. getStackInfo
  775. hide msg
  776. end mouseUp
  777. </script>
  778.     </part>
  779.     <part>
  780.         <id>26</id>
  781.         <type>button</type>
  782.         <visible> <true /> </visible>
  783.         <reserved5> 0 </reserved5>
  784.         <reserved4> 0 </reserved4>
  785.         <reserved3> 0 </reserved3>
  786.         <reserved2> 0 </reserved2>
  787.         <reserved1> 0 </reserved1>
  788.         <enabled> <true /> </enabled>
  789.         <rect>
  790.             <left>420</left>
  791.             <top>220</top>
  792.             <right>503</right>
  793.             <bottom>243</bottom>
  794.         </rect>
  795.         <style>roundrect</style>
  796.         <showName> <true /> </showName>
  797.         <highlight> <false /> </highlight>
  798.         <autoHighlight> <false /> </autoHighlight>
  799.         <sharedHighlight> <true /> </sharedHighlight>
  800.         <family>0</family>
  801.         <titleWidth>0</titleWidth>
  802.         <icon>0</icon>
  803.         <textAlign>center</textAlign>
  804.         <font>Chicago</font>
  805.         <textSize>12</textSize>
  806.         <textStyle>plain</textStyle>
  807.         <name>New...</name>
  808.         <script>on mouseUp
  809. global openfile
  810. repeat forever
  811. ask "Create text file named:" with ""
  812. if it is empty then exit repeat
  813. put it into thefile
  814. open file thefile
  815. read from file thefile for 16384
  816. close file thefile
  817. if it ‚↠empty then
  818. play boing
  819. answer thefile&&"already exists, replace it?"¬¨
  820. with "Yes" or "No"
  821. if it is "Yes" then put empty into it
  822. end if
  823. if it is empty then
  824. put thefile into openfile
  825. open file thefile
  826. write return to file thefile
  827. close file thefile
  828. getfileinfo
  829. put "" into cd fld 2
  830. getkeysfromfile
  831. set the name of button 6 to "Close"
  832. hide btn 3
  833. show btn 4
  834. exit repeat
  835. end if
  836. end repeat
  837. end mouseUp
  838. </script>
  839.     </part>
  840.     <part>
  841.         <id>37</id>
  842.         <type>button</type>
  843.         <visible> <true /> </visible>
  844.         <reserved5> 0 </reserved5>
  845.         <reserved4> 0 </reserved4>
  846.         <reserved3> 0 </reserved3>
  847.         <reserved2> 0 </reserved2>
  848.         <reserved1> 0 </reserved1>
  849.         <enabled> <true /> </enabled>
  850.         <rect>
  851.             <left>202</left>
  852.             <top>70</top>
  853.             <right>306</right>
  854.             <bottom>92</bottom>
  855.         </rect>
  856.         <style>checkbox</style>
  857.         <showName> <true /> </showName>
  858.         <highlight> <false /> </highlight>
  859.         <autoHighlight> <false /> </autoHighlight>
  860.         <sharedHighlight> <true /> </sharedHighlight>
  861.         <family>0</family>
  862.         <titleWidth>0</titleWidth>
  863.         <icon>0</icon>
  864.         <textAlign>center</textAlign>
  865.         <font>Chicago</font>
  866.         <textSize>12</textSize>
  867.         <textStyle>plain</textStyle>
  868.         <name>FKeys Driver</name>
  869.         <script>on mouseUp
  870. if the hilite of me is true then removeDriver FKey
  871. else InstallDriver FKey
  872. set the hilite of me to installed(FunctionKey)
  873. if installed(FunctionKey) then
  874. enable menuItem 7 of menu "Hyperkeys"
  875. disable menuItem 6 of menu "Hyperkeys"
  876. else
  877. enable menuItem 6 of menu "Hyperkeys"
  878. disable menuItem 7 of menu "Hyperkeys"
  879. end if
  880. end mouseUp
  881. </script>
  882.     </part>
  883.     <part>
  884.         <id>20</id>
  885.         <type>field</type>
  886.         <visible> <false /> </visible>
  887.         <dontWrap> <false /> </dontWrap>
  888.         <dontSearch> <false /> </dontSearch>
  889.         <sharedText> <false /> </sharedText>
  890.         <fixedLineHeight> <true /> </fixedLineHeight>
  891.         <autoTab> <false /> </autoTab>
  892.         <lockText> <true /> </lockText>
  893.         <rect>
  894.             <left>8</left>
  895.             <top>49</top>
  896.             <right>504</right>
  897.             <bottom>313</bottom>
  898.         </rect>
  899.         <style>scrolling</style>
  900.         <autoSelect> <false /> </autoSelect>
  901.         <showLines> <false /> </showLines>
  902.         <wideMargins> <false /> </wideMargins>
  903.         <multipleLines> <false /> </multipleLines>
  904.         <reservedFamily> 0 </reservedFamily>
  905.         <titleWidth>0</titleWidth>
  906.         <icon>0</icon>
  907.         <textAlign>left</textAlign>
  908.         <font>Geneva</font>
  909.         <textSize>12</textSize>
  910.         <textStyle>plain</textStyle>
  911.         <textHeight>16</textHeight>
  912.         <name>Help</name>
  913.         <script>on mouseup
  914. hide me
  915. end mouseup
  916. </script>
  917.     </part>
  918.     <part>
  919.         <id>29</id>
  920.         <type>button</type>
  921.         <visible> <false /> </visible>
  922.         <reserved5> 0 </reserved5>
  923.         <reserved4> 0 </reserved4>
  924.         <reserved3> 0 </reserved3>
  925.         <reserved2> 0 </reserved2>
  926.         <reserved1> 0 </reserved1>
  927.         <enabled> <true /> </enabled>
  928.         <rect>
  929.             <left>0</left>
  930.             <top>65522</top>
  931.             <right>512</right>
  932.             <bottom>328</bottom>
  933.         </rect>
  934.         <style>transparent</style>
  935.         <showName> <false /> </showName>
  936.         <highlight> <false /> </highlight>
  937.         <autoHighlight> <false /> </autoHighlight>
  938.         <sharedHighlight> <true /> </sharedHighlight>
  939.         <family>0</family>
  940.         <titleWidth>0</titleWidth>
  941.         <icon>0</icon>
  942.         <textAlign>center</textAlign>
  943.         <font>Chicago</font>
  944.         <textSize>12</textSize>
  945.         <textStyle>plain</textStyle>
  946.         <name>Cover</name>
  947.         <script>on mouseUp
  948. play boing
  949. end mouseUp
  950. </script>
  951.     </part>
  952.     <part>
  953.         <id>17</id>
  954.         <type>field</type>
  955.         <visible> <false /> </visible>
  956.         <dontWrap> <false /> </dontWrap>
  957.         <dontSearch> <false /> </dontSearch>
  958.         <sharedText> <false /> </sharedText>
  959.         <fixedLineHeight> <true /> </fixedLineHeight>
  960.         <autoTab> <false /> </autoTab>
  961.         <lockText> <true /> </lockText>
  962.         <rect>
  963.             <left>8</left>
  964.             <top>49</top>
  965.             <right>504</right>
  966.             <bottom>313</bottom>
  967.         </rect>
  968.         <style>opaque</style>
  969.         <autoSelect> <false /> </autoSelect>
  970.         <showLines> <false /> </showLines>
  971.         <wideMargins> <false /> </wideMargins>
  972.         <multipleLines> <false /> </multipleLines>
  973.         <reservedFamily> 0 </reservedFamily>
  974.         <titleWidth>0</titleWidth>
  975.         <icon>0</icon>
  976.         <textAlign>center</textAlign>
  977.         <font>Geneva</font>
  978.         <textSize>10</textSize>
  979.         <textStyle>plain</textStyle>
  980.         <textHeight>13</textHeight>
  981.         <name>About</name>
  982.         <script>on mouseup
  983. hide me
  984. end mouseup
  985. </script>
  986.     </part>
  987.     <part>
  988.         <id>30</id>
  989.         <type>field</type>
  990.         <visible> <false /> </visible>
  991.         <dontWrap> <false /> </dontWrap>
  992.         <dontSearch> <false /> </dontSearch>
  993.         <sharedText> <false /> </sharedText>
  994.         <fixedLineHeight> <true /> </fixedLineHeight>
  995.         <autoTab> <false /> </autoTab>
  996.         <lockText> <true /> </lockText>
  997.         <rect>
  998.             <left>89</left>
  999.             <top>96</top>
  1000.             <right>428</right>
  1001.             <bottom>227</bottom>
  1002.         </rect>
  1003.         <style>rectangle</style>
  1004.         <autoSelect> <false /> </autoSelect>
  1005.         <showLines> <false /> </showLines>
  1006.         <wideMargins> <false /> </wideMargins>
  1007.         <multipleLines> <false /> </multipleLines>
  1008.         <reservedFamily> 0 </reservedFamily>
  1009.         <titleWidth>0</titleWidth>
  1010.         <icon>0</icon>
  1011.         <textAlign>left</textAlign>
  1012.         <font>Geneva</font>
  1013.         <textSize>12</textSize>
  1014.         <textStyle>plain</textStyle>
  1015.         <textHeight>16</textHeight>
  1016.         <name>Dlog</name>
  1017.         <script>on mouseup
  1018. end mouseup
  1019. </script>
  1020.     </part>
  1021.     <part>
  1022.         <id>42</id>
  1023.         <type>field</type>
  1024.         <visible> <false /> </visible>
  1025.         <dontWrap> <false /> </dontWrap>
  1026.         <dontSearch> <false /> </dontSearch>
  1027.         <sharedText> <false /> </sharedText>
  1028.         <fixedLineHeight> <true /> </fixedLineHeight>
  1029.         <autoTab> <false /> </autoTab>
  1030.         <lockText> <true /> </lockText>
  1031.         <rect>
  1032.             <left>92</left>
  1033.             <top>99</top>
  1034.             <right>425</right>
  1035.             <bottom>224</bottom>
  1036.         </rect>
  1037.         <style>rectangle</style>
  1038.         <autoSelect> <false /> </autoSelect>
  1039.         <showLines> <false /> </showLines>
  1040.         <wideMargins> <false /> </wideMargins>
  1041.         <multipleLines> <false /> </multipleLines>
  1042.         <reservedFamily> 0 </reservedFamily>
  1043.         <titleWidth>0</titleWidth>
  1044.         <icon>0</icon>
  1045.         <textAlign>left</textAlign>
  1046.         <font>Geneva</font>
  1047.         <textSize>12</textSize>
  1048.         <textStyle>plain</textStyle>
  1049.         <textHeight>16</textHeight>
  1050.         <name>dlog3</name>
  1051.         <script></script>
  1052.     </part>
  1053.     <part>
  1054.         <id>31</id>
  1055.         <type>field</type>
  1056.         <visible> <false /> </visible>
  1057.         <dontWrap> <false /> </dontWrap>
  1058.         <dontSearch> <false /> </dontSearch>
  1059.         <sharedText> <false /> </sharedText>
  1060.         <fixedLineHeight> <false /> </fixedLineHeight>
  1061.         <autoTab> <false /> </autoTab>
  1062.         <lockText> <true /> </lockText>
  1063.         <rect>
  1064.             <left>93</left>
  1065.             <top>100</top>
  1066.             <right>424</right>
  1067.             <bottom>223</bottom>
  1068.         </rect>
  1069.         <style>rectangle</style>
  1070.         <autoSelect> <false /> </autoSelect>
  1071.         <showLines> <false /> </showLines>
  1072.         <wideMargins> <false /> </wideMargins>
  1073.         <multipleLines> <false /> </multipleLines>
  1074.         <reservedFamily> 0 </reservedFamily>
  1075.         <titleWidth>0</titleWidth>
  1076.         <icon>0</icon>
  1077.         <textAlign>center</textAlign>
  1078.         <font>Geneva</font>
  1079.         <textSize>12</textSize>
  1080.         <textStyle>plain</textStyle>
  1081.         <textHeight>14</textHeight>
  1082.         <name>Dlog2</name>
  1083.         <script>on mouseup
  1084. end mouseup
  1085. </script>
  1086.     </part>
  1087.     <part>
  1088.         <id>32</id>
  1089.         <type>button</type>
  1090.         <visible> <false /> </visible>
  1091.         <reserved5> 0 </reserved5>
  1092.         <reserved4> 0 </reserved4>
  1093.         <reserved3> 0 </reserved3>
  1094.         <reserved2> 0 </reserved2>
  1095.         <reserved1> 0 </reserved1>
  1096.         <enabled> <true /> </enabled>
  1097.         <rect>
  1098.             <left>168</left>
  1099.             <top>198</top>
  1100.             <right>249</right>
  1101.             <bottom>219</bottom>
  1102.         </rect>
  1103.         <style>roundrect</style>
  1104.         <showName> <true /> </showName>
  1105.         <highlight> <false /> </highlight>
  1106.         <autoHighlight> <false /> </autoHighlight>
  1107.         <sharedHighlight> <true /> </sharedHighlight>
  1108.         <family>0</family>
  1109.         <titleWidth>0</titleWidth>
  1110.         <icon>0</icon>
  1111.         <textAlign>center</textAlign>
  1112.         <font>Chicago</font>
  1113.         <textSize>12</textSize>
  1114.         <textStyle>plain</textStyle>
  1115.         <name>OK</name>
  1116.         <script>on mouseUp
  1117. global currentscript,openfile,selectedkey,openstack
  1118. set cursor to watch
  1119. put word 1 of the selection into NewType
  1120. put last word of the selection into NewName
  1121. put last word of SelectedKey into KeyName
  1122. put first word of item 3 of SelectedKey into KeyType
  1123. put length(Keyname) + Length(Keytype) into TheLength
  1124. dodialog hide
  1125. if item 1 of selectedkey = "2" then
  1126. open file openfile
  1127. read from file openfile for 16384
  1128. put it into temp
  1129. close file openfile
  1130. else
  1131. put currentscript into temp
  1132. end if
  1133. put offset ("On Do"&keytype&Keyname&return,temp) into start
  1134. put offset ("End Do"&keytype&Keyname&return,temp) into finish
  1135. if start = finish then
  1136. answer "Can‚Äôt seem to find "&keytype&&"-"&&keyname
  1137. exit mouseup
  1138. end if
  1139. put "End Do"&newtype&newName&return into char finish to¬¨
  1140. finish+thelength+7 of temp
  1141. put "On Do"&Newtype&newName&return into char start to start+thelength¬¨
  1142. +6 of temp
  1143. if item 1 of selectedkey = "2" then
  1144. put "Writing to "&line 1 of cd fld "Filename"&" ..."
  1145. open file openfile
  1146. write temp to file openfile
  1147. close file openfile
  1148. hide msg
  1149. else
  1150. put temp into currentscript
  1151. UpdateStackScript
  1152. end if
  1153. put NewType into word 1 of item 3 of selectedkey
  1154. put NewName into last word of selectedkey
  1155. put "" into cd fld 1
  1156. put "" into cd fld 2
  1157. GetInstalledKeys
  1158. if openfile ‚↠"" then GetKeysFromFile
  1159. GetScript
  1160. end mouseUp
  1161. </script>
  1162.     </part>
  1163.     <part>
  1164.         <id>34</id>
  1165.         <type>button</type>
  1166.         <visible> <false /> </visible>
  1167.         <reserved5> 0 </reserved5>
  1168.         <reserved4> 0 </reserved4>
  1169.         <reserved3> 0 </reserved3>
  1170.         <reserved2> 0 </reserved2>
  1171.         <reserved1> 0 </reserved1>
  1172.         <enabled> <true /> </enabled>
  1173.         <rect>
  1174.             <left>272</left>
  1175.             <top>198</top>
  1176.             <right>353</right>
  1177.             <bottom>219</bottom>
  1178.         </rect>
  1179.         <style>roundrect</style>
  1180.         <showName> <true /> </showName>
  1181.         <highlight> <false /> </highlight>
  1182.         <autoHighlight> <true /> </autoHighlight>
  1183.         <sharedHighlight> <true /> </sharedHighlight>
  1184.         <family>0</family>
  1185.         <titleWidth>0</titleWidth>
  1186.         <icon>0</icon>
  1187.         <textAlign>center</textAlign>
  1188.         <font>Chicago</font>
  1189.         <textSize>12</textSize>
  1190.         <textStyle>plain</textStyle>
  1191.         <name>Cancel</name>
  1192.         <script>on mouseUp
  1193. dodialog hide
  1194. end mouseUp
  1195. </script>
  1196.     </part>
  1197.     <part>
  1198.         <id>39</id>
  1199.         <type>field</type>
  1200.         <visible> <false /> </visible>
  1201.         <dontWrap> <false /> </dontWrap>
  1202.         <dontSearch> <false /> </dontSearch>
  1203.         <sharedText> <false /> </sharedText>
  1204.         <fixedLineHeight> <true /> </fixedLineHeight>
  1205.         <autoTab> <false /> </autoTab>
  1206.         <lockText> <true /> </lockText>
  1207.         <rect>
  1208.             <left>94</left>
  1209.             <top>106</top>
  1210.             <right>248</right>
  1211.             <bottom>186</bottom>
  1212.         </rect>
  1213.         <style>opaque</style>
  1214.         <autoSelect> <false /> </autoSelect>
  1215.         <showLines> <false /> </showLines>
  1216.         <wideMargins> <false /> </wideMargins>
  1217.         <multipleLines> <false /> </multipleLines>
  1218.         <reservedFamily> 0 </reservedFamily>
  1219.         <titleWidth>0</titleWidth>
  1220.         <icon>0</icon>
  1221.         <textAlign>left</textAlign>
  1222.         <font>Chicago</font>
  1223.         <textSize>12</textSize>
  1224.         <textStyle>plain</textStyle>
  1225.         <textHeight>16</textHeight>
  1226.         <name>Action</name>
  1227.         <script>on mouseup
  1228. end mouseup</script>
  1229.     </part>
  1230.     <part>
  1231.         <id>40</id>
  1232.         <type>field</type>
  1233.         <visible> <false /> </visible>
  1234.         <dontWrap> <true /> </dontWrap>
  1235.         <dontSearch> <false /> </dontSearch>
  1236.         <sharedText> <false /> </sharedText>
  1237.         <fixedLineHeight> <true /> </fixedLineHeight>
  1238.         <autoTab> <false /> </autoTab>
  1239.         <lockText> <true /> </lockText>
  1240.         <rect>
  1241.             <left>248</left>
  1242.             <top>106</top>
  1243.             <right>420</right>
  1244.             <bottom>187</bottom>
  1245.         </rect>
  1246.         <style>scrolling</style>
  1247.         <autoSelect> <false /> </autoSelect>
  1248.         <showLines> <false /> </showLines>
  1249.         <wideMargins> <false /> </wideMargins>
  1250.         <multipleLines> <false /> </multipleLines>
  1251.         <reservedFamily> 0 </reservedFamily>
  1252.         <titleWidth>0</titleWidth>
  1253.         <icon>0</icon>
  1254.         <textAlign>left</textAlign>
  1255.         <font>Chicago</font>
  1256.         <textSize>12</textSize>
  1257.         <textStyle>plain</textStyle>
  1258.         <textHeight>16</textHeight>
  1259.         <name>Choose</name>
  1260.         <script>on mousedown
  1261. put the rect of me into therect
  1262. put the mouseloc into DownLoc
  1263. put ((item 2 of DownLoc - item 2 of therect+ the scroll of me)¬¨
  1264. div 16)+1 into theline
  1265. if line theline of me is not empty then select line theline of me
  1266. end mousedown
  1267.  
  1268. on mouseup
  1269. end mouseup</script>
  1270.     </part>
  1271.     <part>
  1272.         <id>43</id>
  1273.         <type>field</type>
  1274.         <visible> <true /> </visible>
  1275.         <dontWrap> <true /> </dontWrap>
  1276.         <dontSearch> <false /> </dontSearch>
  1277.         <sharedText> <false /> </sharedText>
  1278.         <fixedLineHeight> <false /> </fixedLineHeight>
  1279.         <autoTab> <false /> </autoTab>
  1280.         <lockText> <true /> </lockText>
  1281.         <rect>
  1282.             <left>314</left>
  1283.             <top>9</top>
  1284.             <right>366</right>
  1285.             <bottom>40</bottom>
  1286.         </rect>
  1287.         <style>opaque</style>
  1288.         <autoSelect> <false /> </autoSelect>
  1289.         <showLines> <false /> </showLines>
  1290.         <wideMargins> <false /> </wideMargins>
  1291.         <multipleLines> <false /> </multipleLines>
  1292.         <reservedFamily> 0 </reservedFamily>
  1293.         <titleWidth>0</titleWidth>
  1294.         <icon>0</icon>
  1295.         <textAlign>left</textAlign>
  1296.         <font>Times</font>
  1297.         <textSize>36</textSize>
  1298.         <textStyle>plain</textStyle>
  1299.         <textHeight>48</textHeight>
  1300.         <name>Version</name>
  1301.         <script></script>
  1302.     </part>
  1303.     <content>
  1304.         <layer>background</layer>
  1305.         <id>3</id>
  1306.         <text>on controlkey keynum -- Hyperkeys Driver 2.1 ¬© 1991 MPB Trinder
  1307.   -- Installed on xxxxx at xxxxx
  1308.   put xxxxx ¬¨
  1309.   into keynames
  1310.   if keynum = 96 then put 62 into keynum
  1311.   if keynum >62 then pass controlkey
  1312.   put item keynum of keynames into whichkey
  1313.   if whichkey = "*" then pass controlkey
  1314.   lock error dialogs
  1315.   do "send docontrol"&whichkey&" to this stack"
  1316. end controlkey
  1317.  
  1318. on DoControlH
  1319.   visual effect iris open slowly
  1320.   go stack "Hyperkeys" in a new window
  1321. End DoControlH
  1322. </text>
  1323.     </content>
  1324.     <content>
  1325.         <layer>card</layer>
  1326.         <id>15</id>
  1327.         <text>Unused Keys
  1328. 40 Keys available</text>
  1329.     </content>
  1330.     <content>
  1331.         <layer>card</layer>
  1332.         <id>17</id>
  1333.         <text>A Hypercard programming utility by Mike Trinder.
  1334.  
  1335. Hyperkeys gives you the ability to easily add hypertalk scripts to any Control-Key combination or Function key if you have an Extended Keyboard.
  1336.  
  1337. Scripts can be placed in either the Home stack to make them generally available or in a specific stack to provide local Script Macros. All scripts can be cleanly removed.
  1338. Scripts can be saved as TEXT files for storage and distribution.
  1339.  
  1340.  
  1341. This stack is shareware; if you use this stack please send ¬£2 (dollars will do fine) to
  1342. Mike Trinder,
  1343. South Bramble,
  1344. Sunning Ave,
  1345. Ascot,
  1346. Berks,
  1347. ENGLAND.
  1348.  
  1349. ¬© Mike Trinder, March 1991.</text>
  1350.     </content>
  1351.     <content>
  1352.         <layer>card</layer>
  1353.         <id>20</id>
  1354.         <text><span class="style3">elp with Hyperkeys:</span><span class="style1">
  1355.  
  1356.   HyperKeys is a Hypercard programming utility which will assign any script to be executed when Control and another key are pressed or, on the Apple Extended Keyboard, when a functionkey is pressed.
  1357.  
  1358.  
  1359. </span><span class="style4">To Install/Remove Hyperkeys:</span><span class="style1">
  1360.  
  1361.    For the keys to work, you must install the respective driver. This is done by clicking on the checkboxes ‚ÄúControlKey Driver‚Äù and ‚ÄúFunctionkey driver‚Äù.
  1362.   These boxes are checked when the driver is installed, blank when not.
  1363.  
  1364.   NB. Removing the driver does not remove the KeyScripts associated with a stack. Removing the driver is thus a good way of temporarily disabling HyperKeys.
  1365.  
  1366.   On installation, Control-H is assigned to bring you to this stack.
  1367.  
  1368.  
  1369. </span><span class="style4">Adding New Keys:
  1370. </span><span class="style1">
  1371.   Click on the key you wish to add from the Unused Keys list. Either give it a script and immediately copy it across to the Home stack using the
  1372. ¬´ move ¬´ button, or move it first and then assign it a script.
  1373.  
  1374.  
  1375. </span><span class="style4">Adding Keys from a text file:</span><span class="style1">
  1376.  
  1377.   With Hyperkeys 2.1 comes a whole selection of key scripts stored in a text file called Key Storage. To copy these keys to the home stack first open a file using the Open... button, then copy the keys you want with the copy button.
  1378.  
  1379.  
  1380. </span><span class="style4">Removing Keys:</span><span class="style1">
  1381.  
  1382.   Keys can only be removed from a stack. This is done by selecting the key you wish to remove and then clicking on Remove. Once removed, a script is lost forever: be careful!
  1383.  
  1384.  
  1385. </span><span class="style4">Saving Keys to a text file:</span><span class="style1">
  1386.  
  1387.   Open a text file using the "Open..." button, or create a new file using the "New..." button. Now select the keys from the stack and press "¬ª copy ¬ª" to save that key. To copy all the keys, select any key in the stack and press "¬ª copy all ¬ª".
  1388.  
  1389.  
  1390. </span><span class="style3">Tips for Key Scripts:</span><span class="style1">
  1391.  
  1392.   Keys can be installed in any stack as well as the Home stack; installing them in the home stack means they will be universally available, whilst installing them in a specific stack will mean the keys are available ONLY in that stack, and will OVERRIDE keys of the same name in the Home stack.
  1393.   Similarly, if a stack is ‚Äòin use‚Äô its key scripts may override those placed in the home stack. Be careful Using stacks when they contain keyscripts.
  1394.   Try to make the scripts as universal as possible so they work in any circumstance, and protect destructive keys with an Answer Dialog box asking for confirmation - it is all too easy to hit Control instead of Shift ! Also, remember that not everyone has an Extended keyboard, or even one with a Control key on it (the Mac Plus for example), so if a function key script is essential to a stack, provide an alternative method as well!
  1395.   You can make one key do several things by testing for the shift, command and option keys at the beginning of the script.
  1396.  
  1397.   You can call other handlers from a Keyscript, but don't put in an ‚ÄúOn handler ‚Äù, ‚ÄúEnd Handler‚Äù ... these are put in for you.
  1398.  
  1399.   Due to the way controlkeys are mapped you will find that Control and some keys will invoke other scripts as below :
  1400.  
  1401. </span><span class="style5">Control and key</span><span class="style1">                        </span><span class="style5">Is the same as</span><span class="style1">
  1402. </span><span class="style2">
  1403. HOME                         Control - A
  1404. ENTER                 ¬†      Control - C
  1405. END                          Control - D
  1406. HELP                         Control - E
  1407. DELETE                       Control - H
  1408. TAB                          Control - I
  1409. PAGE UP                      Control - K
  1410. PAGE DOWN                    Control - L
  1411. RETURN                       Control - M
  1412. ANY FUNCTION KEY             Control - P
  1413. ESC                          Control - OPEN  (Bracket)
  1414. CLEAR                        Control - OPEN  (Bracket)
  1415. LEFT ARROW                   Control - BSLASH
  1416. RIGHT ARROW                  Control - CLOSE (Bracket)
  1417. DOWN ARROW                   Control - MINUS</span><span class="style1">
  1418.  
  1419.   Note CONTROL - MINUS differs from CONTROL - KPADMINUS, the former being the minus key on the main keyboard, the latter being the minus key on the Numeric KeyPad.
  1420.  
  1421.   Also note that Control with any functionkey does NOT execute that function, but executes Control - P.
  1422.  
  1423.  
  1424. </span><span class="style3">Enjoy!</span></text>
  1425.     </content>
  1426.     <content>
  1427.         <layer>card</layer>
  1428.         <id>13</id>
  1429.         <text>Stack "Home"
  1430. 76K (0K free)</text>
  1431.     </content>
  1432.     <content>
  1433.         <layer>card</layer>
  1434.         <id>31</id>
  1435.         <text>
  1436.  
  1437.  
  1438.  
  1439.  
  1440. ________________________________________</text>
  1441.     </content>
  1442.     <content>
  1443.         <layer>card</layer>
  1444.         <id>39</id>
  1445.         <text>Reassign  Control ‚Äî Open                      script to :</text>
  1446.     </content>
  1447.     <content>
  1448.         <layer>background</layer>
  1449.         <id>5</id>
  1450.         <text>on functionkey keynum -- Hyperkeys Driver 2.0 ¬© 1989 MPB Trinder
  1451.   -- Installed on xxxxx at xxxxx
  1452.   put "One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten,Eleven,Twelve,Thirteen,Fourteen,Fifteen" into keynames
  1453.   do "Send DoFKEY"&item keynum of keynames& " to this stack"
  1454. end functionkey
  1455. </text>
  1456.     </content>
  1457.     <content>
  1458.         <layer>card</layer>
  1459.         <id>43</id>
  1460.         <text>2.1</text>
  1461.     </content>
  1462.     <content>
  1463.         <layer>card</layer>
  1464.         <id>40</id>
  1465.         <text>Control ‚Äî E                     
  1466. Control ‚Äî I                     
  1467. Control ‚Äî J                     
  1468. Control ‚Äî K                     
  1469. Control ‚Äî N                     
  1470. Control ‚Äî O                     
  1471. Control ‚Äî P                     
  1472. Control ‚Äî Q                     
  1473. Control ‚Äî S                     
  1474. Control ‚Äî X                     
  1475. Control ‚Äî Y                     
  1476. Control ‚Äî Z                     
  1477. Control ‚Äî Uparrow                     
  1478. Control ‚Äî Minus                     
  1479. Control ‚Äî Quote                     
  1480. Control ‚Äî Times                     
  1481. Control ‚Äî Plus                     
  1482. Control ‚Äî Comma                     
  1483. Control ‚Äî KpadMinus                     
  1484. Control ‚Äî Period                     
  1485. Control ‚Äî Zero                     
  1486. Control ‚Äî Five                     
  1487. Control ‚Äî Six                     
  1488. Control ‚Äî Seven                     
  1489. Control ‚Äî Eight                     
  1490. Control ‚Äî Nine                     
  1491. Control ‚Äî SemiColon                     
  1492. Control ‚Äî Equals                     
  1493. Control ‚Äî Apostrophe                     
  1494. Fkey ‚Äî One                     
  1495. Fkey ‚Äî Two                     
  1496. Fkey ‚Äî Three                     
  1497. Fkey ‚Äî Four                     
  1498. Fkey ‚Äî Five                     
  1499. Fkey ‚Äî Six                     
  1500. Fkey ‚Äî Seven                     
  1501. Fkey ‚Äî Eight                     
  1502. Fkey ‚Äî Nine                     
  1503. Fkey ‚Äî Ten                     
  1504. Fkey ‚Äî Eleven                     
  1505. Fkey ‚Äî Twelve                     
  1506. Fkey ‚Äî Thirteen                     
  1507. Fkey ‚Äî Fourteen                     
  1508. Fkey ‚Äî Fifteen                     
  1509. </text>
  1510.     </content>
  1511.     <content>
  1512.         <layer>background</layer>
  1513.         <id>4</id>
  1514.         <text>Script of Control-I</text>
  1515.     </content>
  1516.     <content>
  1517.         <layer>card</layer>
  1518.         <id>1</id>
  1519.         <text>Control ‚Äî A                     
  1520. Control ‚Äî B                     
  1521. Control ‚Äî C                     
  1522. Control ‚Äî D                     
  1523. Control ‚Äî E                     
  1524. Control ‚Äî F                     
  1525. Control ‚Äî G                     
  1526. Control ‚Äî H                     
  1527. Control ‚Äî L                     
  1528. Control ‚Äî M                     
  1529. Control ‚Äî Q                     
  1530. Control ‚Äî R                     
  1531. Control ‚Äî S                     
  1532. Control ‚Äî T                     
  1533. Control ‚Äî U                     
  1534. Control ‚Äî V                     
  1535. Control ‚Äî W                     
  1536. Control ‚Äî Backslash                     
  1537. Control ‚Äî Close                     
  1538. Control ‚Äî Uparrow                     
  1539. Control ‚Äî Minus                     
  1540. Control ‚Äî Space                     
  1541. Control ‚Äî Slash                     
  1542. Control ‚Äî One                     
  1543. Control ‚Äî Two                     
  1544. Control ‚Äî Three                     
  1545. Control ‚Äî Four                     
  1546. </text>
  1547.     </content>
  1548.     <content>
  1549.         <layer>card</layer>
  1550.         <id>12</id>
  1551.         <text>Control ‚Äî I                     
  1552. Control ‚Äî J                     
  1553. Control ‚Äî K                     
  1554. Control ‚Äî N                     
  1555. Control ‚Äî O                     
  1556. Control ‚Äî P                     
  1557. Control ‚Äî X                     
  1558. Control ‚Äî Y                     
  1559. Control ‚Äî Z                     
  1560. Control ‚Äî Open                     
  1561. Control ‚Äî Quote                     
  1562. Control ‚Äî Times                     
  1563. Control ‚Äî Plus                     
  1564. Control ‚Äî Comma                     
  1565. Control ‚Äî KpadMinus                     
  1566. Control ‚Äî Period                     
  1567. Control ‚Äî Zero                     
  1568. Control ‚Äî Five                     
  1569. Control ‚Äî Six                     
  1570. Control ‚Äî Seven                     
  1571. Control ‚Äî Eight                     
  1572. Control ‚Äî Nine                     
  1573. Control ‚Äî SemiColon                     
  1574. Control ‚Äî Equals                     
  1575. Control ‚Äî Apostrophe                     
  1576. Fkey ‚Äî One                     
  1577. Fkey ‚Äî Two                     
  1578. Fkey ‚Äî Three                     
  1579. Fkey ‚Äî Four                     
  1580. Fkey ‚Äî Five                     
  1581. Fkey ‚Äî Six                     
  1582. Fkey ‚Äî Seven                     
  1583. Fkey ‚Äî Eight                     
  1584. Fkey ‚Äî Nine                     
  1585. Fkey ‚Äî Ten                     
  1586. Fkey ‚Äî Eleven                     
  1587. Fkey ‚Äî Twelve                     
  1588. Fkey ‚Äî Thirteen                     
  1589. Fkey ‚Äî Fourteen                     
  1590. Fkey ‚Äî Fifteen                     
  1591. </text>
  1592.     </content>
  1593.     <name>Hyperkeys</name>
  1594.     <script>on idle
  1595. global selectedkey
  1596. if visible of cd fld 10 is true then pass idle
  1597. if "bkgnd" is not in the selectedfield and¬¨
  1598. the selectedfield ‚↠"Message box" and item 3 of selectedkey ‚↠"" then
  1599. select line (item 2 of selectedkey) of card field item 1 of selectedkey
  1600. end if
  1601. if item 3 of selectedkey = "" and ¬¨
  1602. "bkgnd" is not in the selectedfield and¬¨
  1603. the selectedfield ‚↠"message box" then select before char 1 of fld 2
  1604. pass idle
  1605. end idle</script>
  1606. </card>
  1607.  
  1608.  
  1609.